def plus(args):
    sum = 0
    for i in args:
        sum = sum + i
    return sum


args = [0]
aa = int(input("请输入你想要加多少位："))
i = 1
while i <= aa:
    args.append(i)
    i = i + 1
sum = plus(args)
print(sum)